package com.flyinzhen.customer.interfaces;

import com.flyinzhen.core.dto.ResponseDto;
import com.flyinzhen.customer.dto.input.SmsSendInput;
import com.flyinzhen.customer.service.FeignMessageServiceHystric;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 调用短信远程微服务应用接口
 *
 * @author yinzhen
 * @date 2019-04-01
 */
@Component
@FeignClient(name = "spring-message", fallback = FeignMessageServiceHystric.class)
public interface IFeignMessageService {

    @PostMapping("/sms/send")
    ResponseDto sendSms(@RequestBody SmsSendInput inputDto);
}
